package com.effectivcrm.controller


import com.effectivcrm.domain.Lead
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.client.RestTemplate;

import groovy.util.logging.Slf4j;

@Slf4j
@Controller
@RequestMapping("/opportunity")
class OpportunityController {

	
	
	//TODO - Externalize Request Mapping and View Name.
	@RequestMapping("/list")
	String list(@RequestParam(value = "filter", required=false) String viewName, Model model){
			return "leadlist";
	}
	
}
